Skip to content

Implement vehicle's callbacks (OnVehicleTrailerAttach & OnVehicleTrailerDetach) #1014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

NoPressF
Copy link

No description provided.

@NexiusTailer
Copy link
Contributor

NexiusTailer commented May 23, 2025

I'd like to bump this stale PR just to suggest some different name scheme for these two callbacks: OnTrailerAttach and OnTrailerDetach. This way they'll be in line with the current OnTrailerUpdate.

@uifdev
Copy link
Contributor

uifdev commented May 24, 2025

The callbacks aren't triggered upon using the AttachTrailerToVehicle/DetachTrailerFromVehicle functions.

@NexiusTailer
Copy link
Contributor

NexiusTailer commented May 24, 2025

The callbacks aren't triggered upon using the AttachTrailerToVehicle/DetachTrailerFromVehicle functions.

They should probably trigger automatically only if both vehicles are unoccupied. Because if the tower (cab) is occupied, the driver should sync this event by himself.

@NoPressF NoPressF force-pushed the vehicle-trailer-features branch from 82db486 to 32c833b Compare May 24, 2025 18:01
@NoPressF NoPressF closed this May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants